package cn.jkgly.wxUser.service.impl;


import cn.jkgly.wxUser.entity.WxUser;
import cn.jkgly.wxUser.mapper.WxUserMapper;
import cn.jkgly.wxUser.service.IWxUserService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * @Description: wx_user
 * @Author: jeecg-boot
 * @Date:   2020-02-08
 * @Version: V1.0
 */
@Service
public class WxUserServiceImpl extends ServiceImpl<WxUserMapper, WxUser> implements IWxUserService {
    public boolean getUserBoolean(String openid){
        QueryWrapper<WxUser> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("openid",openid);
        WxUser wxUser =getOne(queryWrapper);
        if (wxUser!=null){
            return true;
        }
        return false;
    }
}
